$OpenBSD: patch-gcc_config_sparc_sparc_c,v 1.2 2013/06/07 07:54:23 pascal Exp $
--- gcc/config/sparc/sparc.c.orig	Sun Sep  2 12:37:49 2012
+++ gcc/config/sparc/sparc.c	Sat Apr 13 16:20:32 2013
@@ -4544,6 +4544,9 @@ sparc_expand_prologue (void)
   actual_fsize
     = sparc_compute_frame_size (get_frame_size(), sparc_leaf_function_p);
 
+  if (warn_stack_larger_than && actual_fsize > stack_larger_than_size)
+    warning (OPT_Wstack_larger_than_, "stack usage is %d bytes", actual_fsize);
+
   /* Advertise that the data calculated just above are now valid.  */
   sparc_prologue_data_valid_p = true;
 
